//
//  PayEndViewController.m
//  Courses
//
//  Created by YiXuePxh on 15/4/22.
//  Copyright (c) 2015年 boyibang. All rights reserved.
//

#import "PayEndViewController.h"

@interface PayEndViewController ()
@property (weak, nonatomic) IBOutlet UILabel *NameLabel;
@property (weak, nonatomic) IBOutlet UILabel *ClassOpenDate;
@property (weak, nonatomic) IBOutlet UILabel *orderAmount;
@property (weak, nonatomic) IBOutlet UILabel *OrderID;
@property (weak, nonatomic) IBOutlet UILabel *OrderNo;
@property (weak, nonatomic) IBOutlet UIButton *SureBtn;

@end

@implementation PayEndViewController{
    PayEndData* _endData;
}

-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        //Custom inittialization
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"支付反馈";
    _SureBtn.backgroundColor = [UIColor orangeColor];
    _NameLabel.text = [NSString stringWithFormat:@"班级名称:%@",_endData.courseName];
    _ClassOpenDate.text = [NSString stringWithFormat:@"开课时间:%@",_endData.classOpenDate];
    _orderAmount.text = [NSString stringWithFormat:@"实际支付:%@",_endData.orderAmount];
    _OrderID.text = [NSString stringWithFormat:@"订单ID:%@",_endData.orderId];
    _OrderNo.text = [NSString stringWithFormat:@"订单序号:%@",_endData.orderNo];
}
- (IBAction)buttonAction:(id)sender {
    [self.navigationController popToRootViewControllerAnimated:NO];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
